<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<link rel="stylesheet" type="text/css" href="<?php echo base_url() . '/style/admin/css/public.css' ?>">
	<title>节点管理</title>
	<style type="text/css">
		#wrap {
			width: 94%;
			height: auto;
			overflow: hidden;
			margin: 0px 10px;
			padding: 0px 10px;
		}
		#wrap dl{
			margin: 10px 0px;
			border: 1px solid #dcdcdc;
			height: auto;
			overflow: hidden;
		}
		#wrap dl dt{
			display: block;
			height: 36px;
			line-height: 36px;
			background: #e6e6fa;
			text-indent: 10px;
		}
		#wrap dl dt strong{
			font-size: 16px;
			color: #61aefa;
		}

		#wrap dl dd {
			padding: 10px;
			float: left;
		}
	</style>
</head>
<body>
	<table class="table">
		<tr>
			<td class="th" colspan="10">节点管理</td>
		</tr>
		<tr>
			<td>
			<div id="wrap">
				<?php foreach ($nodes as $key => $value): ?>
				<dl>
					<dt>
						<strong><?php echo $value['title']; ?></strong>
						[<a href="<?php echo site_url('admin/auth/add_node/'.$value['id']); ?>">添加</a>]
					</dt>
					<?php foreach ($value['child'] as $k => $v): ?>
						<dd>
							<span><?php echo $v['title'] ?></span>
							[<a href="<?php echo site_url('admin/auth/node/'.$v['id']); ?>">修改</a>][<a href="">删除</a>]
						</dd>
					<?php endforeach ?>
					
				</dl>
				<?php endforeach ?>
			</div>
			</td>
		</tr>
	</table>

	
</body>
</html>